package com.smart.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.smart.common.annotation.Excel;
import com.smart.common.core.domain.BaseEntity;

/**
 * 异常作业对象 abnormal_operation
 * 
 * @author smart
 * @date 2024-09-18
 */
@Data
@Builder
@TableName("abnormal_operation")
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class AbnormalOperation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键标识 */
    @Schema(description ="${comment}")
    @TableField(value = "id",exist = true)
    private String id;

    /** 异常时间 */
    @Excel(name = "异常时间")
    @Schema(description ="异常时间")
    @TableField(value = "exception_time",exist = true)
    private String exceptionTime;

    /** 用户id */
    @Excel(name = "用户id")
    @Schema(description ="用户id")
    @TableField(value = "user_id",exist = true)
    private String userId;

    /** 类型;0上班时间离开工作区域 */
    @Excel(name = "类型;0上班时间离开工作区域")
    @Schema(description ="类型;0上班时间离开工作区域")
    @TableField(value = "TYPE",exist = true)
    private String TYPE;

    /** 部门号 */
    @Excel(name = "部门号")
    @Schema(description ="部门号")
    @TableField(value = "dept_id",exist = true)
    private String deptId;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    @Schema(description ="乐观锁")
    @TableField(value = "revision",exist = true)
    private String revision;

    /** 是否删除;0正常1删除 */
    @Schema(description ="乐观锁")
    @TableField(value = "del_flag",exist = true)
    private String delFlag;

    /** 是否启用;0正常1冻结 */
    @Excel(name = "是否启用;0正常1冻结")
    @Schema(description ="是否启用;0正常1冻结")
    @TableField(value = "status",exist = true)
    private String status;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setExceptionTime(String exceptionTime) 
    {
        this.exceptionTime = exceptionTime;
    }

    public String getExceptionTime() 
    {
        return exceptionTime;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setTYPE(String TYPE) 
    {
        this.TYPE = TYPE;
    }

    public String getTYPE() 
    {
        return TYPE;
    }
    public void setDeptId(String deptId) 
    {
        this.deptId = deptId;
    }

    public String getDeptId() 
    {
        return deptId;
    }
    public void setRevision(String revision) 
    {
        this.revision = revision;
    }

    public String getRevision() 
    {
        return revision;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("exceptionTime", getExceptionTime())
            .append("userId", getUserId())
            .append("TYPE", getTYPE())
            .append("deptId", getDeptId())
            .append("revision", getRevision())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("status", getStatus())
            .toString();
    }
}
